package JSE_02.Map.Demo05;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class LinkHashMap {
    public static void main(String[] args){
        HashMap<String,String> map=new HashMap<>();
        map.put("a","a");
        map.put("c","c");
        map.put("b","b");
        map.put("a","d");
        System.out.println(map);
        System.out.println("============");
        LinkedHashMap<String,String> linked=new LinkedHashMap<>();
        linked.put("a","a");
        linked.put("c","c");
        linked.put("b","b");
        linked.put("a","e");
        System.out.println(linked);
    }
}
